﻿using System;
using System.Collections.Generic;
using System.Web;

/// <summary>
/// Summary description for Email
/// </summary>
/// 

namespace CE.Email
{
    public class CarInsurance
    {
        private string _currentDomainUrl = "http://www.comparexpress.co.th";
        private string _username;
        private string _subject;
        private string _body;        
        private string _footer;
        private string _insurername;
        private string _premium;
        private string _promotion;        
        private string _monthlyinstallment;
        private string _deductible;
        private string _suminsured;
        private string _fire;
        private string _theft;
        private string _tppd;
        private string _tpbia;
        private string _tpbip;
        private string _padriver;
        private string _medicalexpense;
        
        public CarInsurance()
        {
            //
            // TODO: Add constructor logic here
            //
        }
        public string UserName
        {
            get { return _username; }
            set { _username = value; }
        }
        public string Subject
        {
            get { return _subject; }
            set { _subject = value; }
        }
        public string Body
        {
            get { return _body; }
            set { _body = value; }
        }
        public string Footer
        {
            get { return _footer; }
            set { _footer = value; }
        }
        public string InsurerName
        {
            get { return _insurername;}
            set { _insurername  = value;}
        }
        public string Premium
        {
            get { return _premium; }
            set { _premium = value; }
        }
        public string Promotion
        {
            get { return _promotion; }
            set { _promotion = value; }
        }
        public string MonthlyInstallment
        {
            get { return _monthlyinstallment; }
            set { _monthlyinstallment = value; }
        }

        public string SumInsured
        {
            get { return _suminsured; }
            set { _suminsured = value; }
        }
        public string Fire
        {
            get { return _fire; }
            set { _fire = value; }
        }
        public string Theft
        {
            get { return _theft; }
            set { _theft = value; }
        }
        public string Deductible
        {
            get { return _deductible; }
            set { _deductible = value; }
        }
        public string TPPD
        {
            get { return _tppd; }
            set { _tppd = value; }
        }
        public string TPBIA
        {
            get { return _tpbia; }
            set { _tpbia = value; }
        }
        public string TPBIP
        {
            get { return _tpbip; }
            set { _tpbip = value; }
        }
        public string PADriver
        {
            get { return _padriver; }
            set { _padriver = value; }
        }
        public string MedicalExpense
        {
            get { return _medicalexpense; }
            set { _medicalexpense = value; }
        }

        public string getEmailMeBody()
        {
            String _mailBody = "";

            //_mailBody = "<body class='email_body'>";
            //_mailBody += "<style type='text/css'>";
            //_mailBody += ".email_body {background:white;margin:0; padding:0; color:#4c4c4c; font-family:Arial, Helvetica, sans-serif; font-size:0.85em;}";
            //_mailBody += "a {text-decoration:underline;color:#2c95cc;} ";
            //_mailBody += "#email_container {margin:0 auto;padding:20px;width:600px; height:auto;} ";
            //_mailBody += "#email_body {width:100%; text-align: left !important;} ";
            //_mailBody += ".email_pad10px {padding:10px;} ";
            //_mailBody += ".email_results td {width:33%;} ";
            //_mailBody += "</style>";
            //_mailBody += "<center>";

            //_mailBody += "<table cellpadding='0' cellspacing='0' border='0' style='padding:20px;' width='600'>";
            //_mailBody += "<tr><td width='360'><a href='http://www.comparexpress.co.th/car-insurance/login.aspx' target='_blank'><img src='" + _currentDomainUrl + "/images/email/header_quote.png' width='596' height='187' alt='CompareXpress' border='0' /></a></td></tr>";
            
            //_mailBody += "<tr><td style='padding-left:45px; padding-right:45px;'><strong>Dear " + UserName + ",</strong><br/><br/>";
            //_mailBody += Resources.EmailMessage.Thankyou + "<br/><br/>";
            //_mailBody += Resources.EmailMessage.RequestedQuote + "<br/><br/>";


            //_mailBody += "</td></tr>";
            //_mailBody += "<tr><td id='email_footer'><a href='http://www.comparexpress.co.th' target='_blank'><img src='" + _currentDomainUrl + "/images/email/footer_quote.png' alt='CompareXpress - Partners' width='596' border='0' /></a>";
            //_mailBody += "</td></tr></table>";

            //_mailBody += "<hr />";
            //_mailBody += Resources.EmailMessage.Footer;
            //_mailBody += "<br/>";
            //_mailBody += "<br /><i>" + Resources.EmailMessage.NoReply + "</i>";
            //_mailBody += "<hr />";
            //_mailBody += "</center></body>";
            return _mailBody;
        }
    }
}